<template>
    <Gc>

    </Gc>
</template>
<!-- 祖先组件传给子组件 -->
<script setup lang="ts">
import Gc from './Gc.vue';
import { provide, ref } from 'vue'
const n = ref(0)
provide('key', n)

</script>

<style scoped></style>